package com.blb.community_admin.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@AllArgsConstructor
@NoArgsConstructor
@Data
public class ZyOwnerRoomRecord {
  @TableId
  @JsonSerialize(using = ToStringSerializer.class)
  private long recordId;
  @JsonSerialize(using = ToStringSerializer.class)
  private String ownerRoomId;
  @JsonSerialize(using = ToStringSerializer.class)
  private long communityId;
  @JsonSerialize(using = ToStringSerializer.class)
  private long buildingId;
  @JsonSerialize(using = ToStringSerializer.class)
  private long unitId;
  @JsonSerialize(using = ToStringSerializer.class)
  private long roomId;
  @JsonSerialize(using = ToStringSerializer.class)
  private long ownerId;
  private String ownerType;
  private String roomStatus;
  private String recordAuditOpinion;
  private String recordAuditType;
  private long createById;
  private String createBy;
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private LocalDateTime createTime;
  private String updateBy;
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private LocalDateTime updateTime;
  private String remark;


}
